package com.haima.ziliao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.haima.ziliao.mapper.PDayinconfigMapper;
import com.haima.ziliao.domain.PDayinconfig;
import com.haima.ziliao.service.IPDayinconfigService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 打印价格Service业务层处理
 * 
 * @author hima
 * @date 2024-10-30
 */
@Service
public class PDayinconfigServiceImpl extends ServiceImpl<PDayinconfigMapper, PDayinconfig> implements IPDayinconfigService
{
    @Autowired
    private PDayinconfigMapper pDayinconfigMapper;

    /**
     * 查询打印价格
     * 
     * @param id 打印价格主键
     * @return 打印价格
     */
    @Override
    public PDayinconfig selectPDayinconfigById(Long id)
    {
        return pDayinconfigMapper.selectPDayinconfigById(id);
    }

    /**
     * 查询打印价格列表
     * 
     * @param pDayinconfig 打印价格
     * @return 打印价格
     */
    @Override
    public List<PDayinconfig> selectPDayinconfigList(PDayinconfig pDayinconfig)
    {
        return pDayinconfigMapper.selectPDayinconfigList(pDayinconfig);
    }

    /**
     * 新增打印价格
     * 
     * @param pDayinconfig 打印价格
     * @return 结果
     */
    @Override
    public int insertPDayinconfig(PDayinconfig pDayinconfig)
    {
        return pDayinconfigMapper.insertPDayinconfig(pDayinconfig);
    }

    /**
     * 修改打印价格
     * 
     * @param pDayinconfig 打印价格
     * @return 结果
     */
    @Override
    public int updatePDayinconfig(PDayinconfig pDayinconfig)
    {
        return pDayinconfigMapper.updatePDayinconfig(pDayinconfig);
    }

    /**
     * 批量删除打印价格
     * 
     * @param ids 需要删除的打印价格主键
     * @return 结果
     */
    @Override
    public int deletePDayinconfigByIds(Long[] ids)
    {
        return pDayinconfigMapper.deletePDayinconfigByIds(ids);
    }

    /**
     * 删除打印价格信息
     * 
     * @param id 打印价格主键
     * @return 结果
     */
    @Override
    public int deletePDayinconfigById(Long id)
    {
        return pDayinconfigMapper.deletePDayinconfigById(id);
    }
}
